const mongoose = require('mongoose');

mongoose.Peomise = global.Peomise

mongoose.connect('mongodb://localhost/imgUploader',{useMongoClient:true})

mongoose.connection.on('open',function(){
    console.log("mongodb opened.");
})

require('./image')
require('./comment')
require('./user')
